﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using crm_dal.Objects;
using crm_library.Javascript;


namespace crm_web.DataPages
{
    public partial class ViewUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {

                crm_dal.Objects.User displayUser = new crm_dal.Objects.User(Convert.ToInt32(HttpContext.Current.Session["Selection"]));
                lblFirstName.Text = displayUser.FirstName;
                lblLastName.Text = displayUser.LastName;
                lblLoginName.Text = displayUser.LoginName;
                lblIsAdmin.Text = displayUser.IsAdmin.ToString();
                lblIsMgr.Text = displayUser.IsMgr.ToString();
                lblIsCSR.Text = displayUser.IsCSR.ToString();
                lblIsSA.Text = displayUser.IsSA.ToString();
            }
            catch (Exception ex)
            {
                Alert.Show(ex.Message, Alert.AlertMessageType.Error);
            }
        }
    }
}